import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import MyButton from "@/components/MyButton";
import User from '@/components/User'
import MyComponent from '@/components/MyComponent'
import User2 from '@/components/User2'
import User3 from '@/components/User3'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },{
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/myButton',
      name: 'MyButton',
      component: MyButton
    },
    {
      path: '/MC',
      name: 'MyComponent',
      component: MyComponent
    },
    {
      path: '/myButton',
      name: 'MyButton',
      component: MyButton
    },{
      path: '/user2',
      name: 'User2',
      component: User2
    },{
      path: '/user3',
      name: 'User3',
      component: User3
    }
  ]
})
